
<template>
  <div id="product">
    <!-- 内容 -->
    <div class="client">
      <div class="clientHeader">
        <div class="clientHeader-bg">
          <img src="@/assets/img/pageBanner.png" alt="" />
        </div>
        <div class="clientHeader-content">
          <!-- <div class="clientHeader-content-list">
            <div class="clientHeader-content-item" v-for="(v,i) in 4" :key="i">
              <div class="pic">
                <img src="@/assets/img/products1.png" alt="" />
              </div>
            </div>
          </div> -->
          <h1>工业级标准</h1>
          <h1>专业化品质 人性化设计  </h1>
          <p>Prodessional quality ·Industry standard </p>
        </div>
      </div>
      <div class="moduleContain">
        <router-view   />
      </div>
    </div>
  </div>
</template>
<script>
import AOS from "aos";
export default {
    name:'product',
    data(){
        return{
            
        }
    },
    mounted(){
        let routePath = this.$route.path;
        if(routePath.indexOf('page1')>-1){
            this.productIndex=0
        }
        else if(routePath.indexOf('parameter')>-1){
            this.productIndex=1
        }
        else if(routePath.indexOf('pageDetail')>-1){
            this.productIndex=2
        }
        else{
            this.productIndex=3
        }
        AOS.init({
            offset: 200,   
            duration: 600,   
            easing: 'ease-in-sine',   
            delay: 100
        })
    },
    methods:{
        changeSection(n){
            if(n==this.productIndex) return false;
            let path = '/product'
            switch(n){
                case 0:
                    path += '/page1'
                    break;
                case 1:
                    path += '/parameter'
                    break;
                case 2:
                    path += '/pageDetail'
                    break;       
                default:
                    break;
            }
            this.productIndex = n
            this.$router.push({path:path})
        }
    }
}
</script>
<style lang="scss">
.client {
  width: 100%;
  &Header {
    width: 100%;
    height:608px;
    height:auto;
    position: relative;
    &-bg{
      width: 100%;
      // height: 100%;
      // background-color: rgba(0,0,0,.5);
    }
    &-content{
      position: absolute;
      // top: 234px;
      left: 358px;
      top: 50%;
      // left:50%;
      width: 100%;
      transform: translateY(-50%);
      &-list{
        @include display(center,center);
        min-width: r(100);
        width: 100%;
        .clientHeader-content-item{
          width: r(299);
          height: r(225);
          margin-left: r(21);
        }
        .clientHeader-content-item:first-child{
          margin-left: 0;
        }
      }
      h1{
        text-align: left;
        font-size: 50px;
        line-height: 81px;
        color: #fff;
      }
      p{
        font-size: 28px;
        line-height:41px;
        color: #fff;
        text-align: left;
        margin-top: 28px;
      }
    }
  }

  .moduleContain {
    width: 100%;
    margin: 0 auto;
    position: relative;
    
  }
}
.index{
  .footer{
      background-color: #273443 !important;
      h1,p{
          color: #fff !important;
      }
  }
}
</style>